package com.xzc.refactory.data.selfEncapsulateField.subClass;

public class CappedRange extends IntRange {

    CappedRange(int low, int high, int cap) {
        super(low, high);
        _cap = cap;
    }

    private int _cap;

    int get_cap() {
        return _cap;
    }

    public int get_high() {
        return Math.min(super.get_high(), get_cap());
    }
}
